﻿#ifndef QQ_FRIEND_INDEXDELEGATE_H
#define QQ_FRIEND_INDEXDELEGATE_H

#include <qicon.h>
#include <qstyleditemdelegate.h>
#include <qpainter.h>
#include <qpainterpath.h>

#include <ElaTheme.h>

class QQFriendIndexDelegate : public QStyledItemDelegate
{
	Q_OBJECT
public:
	QQFriendIndexDelegate(QObject* parent = nullptr);
	~QQFriendIndexDelegate();

	void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;

private:
	int m_common_space{ 10 };
	int  icon_width{ 40 };
	QSize  name_size{ 50,20 };
};

#endif // QQ_FRIEND_INDEXDELEGATE_H